package com.wuyi.tea.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AuthorizationDTO {

    /**
     * 用户名
     */
    @Length(max = 12,min = 3,message = "3~12位")
    private String username;


    /**
     * 密码
     */
    @Length(max = 12,min = 3,message = "3~12位")
    private String password;

}
